<?php

if (!isset($_SESSION['Username']) || ($_SESSION['Username'] == "Guest" )){
	echo('
	
		<div id="login">
			<form action="phplib/identification.php" method="post">
				<div id="usernameBar"> <input type="text" name="Username" /> 	</div>
				<div id="passwordBar"> <input type="password" name="Password" /> 		</div>
				<div id="passwordReset"> <br /><br /><br /><a href="?page=password">Forgot Your Password?</a>      </div>
				<div id="loginButton"> 
				
				<TABLE>
				<TR>
				<TD>
					<a href="?page=registration">Register</a>
				</TD>
				<TD>
					<input type="submit" value="Login" /> 	
				</TD>
				</TR>
				</TABLE>
				
				
				</div>
				
			</form>
		</div>
	');
}

elseif (isset($_SESSION['Username'])){
	echo('
		<div id="login">
			<form action="phplib/logout.php" method="post">
				<div id="loginButton"> <input type="submit" value="Log Out" /> 	</div>
			</form>
		</div>
	');
}	

?>
